<?php
// TODO comment

class ZeusLib_Helper_StringTemplate
{

	private $_string;
	
	private $_searches;
	private $_replaces;
	
	public function __construct($string)
	{
		$this->_string = $string;
		
		$this->_searches = array();
		$this->_replaces = array();
	}
	
	public function assign($search, $replace)
	{
		$this->_searches[] = $search;
		$this->_replaces[] = $replace;
	}
	
	public function get()
	{
		return str_replace($this->_searches, $this->_replaces, $this->_string);
	}

}
?>